<?php

class database {

public function connect(){
	$dbhost = 'localhost';
	$dbuser = 'root';
	$dbpass = 'pass';
	$dbname = 'yr';

	//$dbhost = 'bogus.uib.no';
	//$dbuser = 'tol060';
	//$dbpass = 'heisann';
	//$dbname = 'tol060';
	
	$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
	mysql_select_db($dbname);
	return $conn;
}

public function disconnect($conn){
	mysql_close($conn);
}

}

?>